import java.sql.Timestamp;

public class Reply extends Comment{
    private int parentId;

    public Reply(int id, User user, String content, Timestamp timestamp, int parentId) {
        super(id, content,user,timestamp);
        this.parentId = parentId;
    }



    @java.lang.Override
    public java.lang.String toString() {
        return  "    id:"+ getId() +
                " 由用户 ' " + getUserNickname() +
                " '  发表的评论，回复评论"+ parentId +
                ", 内容为：" + getContent() + '\'' +
                ", 发表时间：" + getTimestamp() +
                ", 点赞数：" + getLikeCount();
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }
}